/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testingall;

import java.text.DecimalFormat;

/**
 *
 * @author parallels
 */
public class PrintOut {
    
    public static void print () {
        
        // Clase DecimalFormat
        
        Double fNumber = 2.3;
        DecimalFormat decimalFormat = new DecimalFormat("#,##0.0#;(-#,##0.0#)");
        System.out.println ("");
        System.out.println ("Numero formateado : " + decimalFormat.format(fNumber));
        
    }
    
}
